//
//  This file is part of Siena, a wide-area event notification system.
//  See http://www.inf.usi.ch/carzaniga/siena/
//
//  Author: Giovanni Toffetti Carughi
//          Antonio Carzaniga (firstname.lastname@usi.ch)
//          
//  See the file AUTHORS for full details. 
//
//  Copyright (C) 2008 Antonio Carzaniga
//
//  Siena is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//  
//  Siena is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//  
//  You should have received a copy of the GNU General Public License
//  along with Siena.  If not, see <http://www.gnu.org/licenses/>.
//
package basic;

import java.util.Iterator;
import java.util.LinkedList;

/** a disjunction of filters.
 **/
public class FilterList implements basic.fwd.Predicate {
    private LinkedList<basic.fwd.Filter> filters 
	= new LinkedList<basic.fwd.Filter>();

    public Iterator<basic.fwd.Filter> iterator() {
	return filters.iterator();
    }

    public void add(basic.fwd.Filter c) {
	filters.add(c);
    }

    public void clear() {
	filters.clear();
    }
}
